﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Text;
using System.Xml;
using Gift.DAL;
using Gift.Model;
using Gift.WebApp;

public partial class cn_goods_comment : BasePage
{


    // Methods
    protected string GoodsNameBind()
    {
        string str = "";
        string str2 = "";
        try
        {
            if (base.Request.QueryString["orderNo"] != null)
            {
                DataTable orderGoodsEntitysByOrderNo = BaseFactory.theOrderGoodsEntitys.GetOrderGoodsEntitysByOrderNo(base.Request.QueryString["orderNo"]);
                foreach (DataRow row in orderGoodsEntitysByOrderNo.Rows)
                {
                    str2 = str2 + ((str2 != "") ? ("," + row["gid"].ToString()) : row["gid"].ToString());
                    str = str + ((str != "") ? ("," + row["goodsName"].ToString()) : row["goodsName"].ToString());
                }
            }
        }
        catch
        {
        }
        return ("<span>" + str + "</span><input id=\"hdGoods\" type=\"hidden\" value=\"" + str2 + "\" />");
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (HttpContext.Current.Session["user"] == null)
        {
            base.Response.Redirect("/cn/web_login.html?ru=" + HttpContext.Current.Request.Url.PathAndQuery.Replace("aspx", "html"));
        }
    }

}